package extasysftpserver;

import java.io.File;

/**
 *
 * @author Nikos Siatras
 */
public class ClientProperties
{

    //public final Object fClientLock = new Object();
    public String fCurrentDirectoryPath;
    private Boolean fIsAuthenticated = false;
    private PassiveServerDTP fMyPassiveServer = null;
    private Boolean fIsConnectionPassive = false, fIsConnectionActive = false;

    public ClientProperties()
    {
    }

    public void setIsAuthenticated(Boolean value)
    {
        fIsAuthenticated = true;
    }

    public Boolean isAuthenticated()
    {
        return fIsAuthenticated;
    }

    public void setPassiveServer(PassiveServerDTP passiveServer)
    {
        fMyPassiveServer = passiveServer;
        if (passiveServer != null)
        {
            fIsConnectionPassive = true;
        }
        else
        {
            fIsConnectionPassive = true;
        }
    }

    public PassiveServerDTP getPassiveServer()
    {
        return fMyPassiveServer;
    }

    public Boolean isConnectionPassive()
    {
        return fIsConnectionPassive;
    }

    public Boolean isConnectionActive()
    {
        return fIsConnectionActive;
    }

   
}
